<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>list</title>
	<hdjs/>
</head>
<body>
<div class="wrap">
	<div class="menu_list">
		<ul>
		    <li><a href="{|U:'index'}"  class="action">问题列表</a></li>
		    <li><a href="{|U:'add'}">添加问题</a></li>
		</ul>
	</div>
<form method="post">
	<table class="table1 hd-form">
		<tr>
			<td class="w100">问题分类</td>
			<td>
				<select name="cid" class="w150 h30" style="text-align:center;">
					<option value="0">全部</option>
					<list from='$cat' name='$c'>
					<option value="{$c.cid}">{$c.catname}</option>
					</list>
				</select>
			</td>
			<td></td><td></td>
		</tr>
		<tr>
			<td>QID</td>
			<td>问题</td>
			<td class="w200">问题类别</td>
			<td>操作</td>
		</tr>
		<list from='$data' name='$d'>
		<tr>
			<td>{$d.qid}</td>
			<td>{$d.qname}</td>
			<list from='$cat' name='$c'>
				<if value="$c.cid eq $d.cid">
				<td>{$c.catname}</td>
				</if>
			</list> 
			<td><a href="{|U:'Question/edit',array('qid'=>$d['qid'])}">编辑</a> |
				<a href="{|U:'Question/del',array('qid'=>$d['qid'])}" onclick="return confirm('确定删除？')">删除</a> |
				<a href="">查看</a>
			</td>
		</tr>
		</list>
	</table>
</form>
<div class="page1">
	{$page}
</div>
</div>
</body>
</html>